﻿Namespace myBookmarks.Infrastructure
    Public Class ConfigurationSettings
        Implements IConfigurationSettings
        Public ReadOnly Property SiteTitle() As String Implements IConfigurationSettings.SiteTitle
            Get
                Return ConfigurationManager.AppSettings("SiteTitle")
            End Get
        End Property

        Public ReadOnly Property RootUrl() As String Implements IConfigurationSettings.RootUrl
            Get
                Return ConfigurationManager.AppSettings("RootUrl")
            End Get

        End Property

        Public ReadOnly Property MetaKeywords() As String Implements IConfigurationSettings.MetaKeywords
            Get
                Return ConfigurationManager.AppSettings("MetaKeywords")
            End Get

        End Property

        Public ReadOnly Property EmailTemplateDirectory() As String Implements IConfigurationSettings.EmailTemplateDirectory
            Get
                Return ConfigurationManager.AppSettings("EmailTemplateDirectory")
            End Get
        End Property

        Public ReadOnly Property EmailEnableSSL() As Boolean Implements IConfigurationSettings.EmailEnableSSL
            Get
                Return CBool(ConfigurationManager.AppSettings("EmailEnableSSL"))
            End Get
        End Property

        Public ReadOnly Property EmailFromAddress() As String Implements IConfigurationSettings.EmailFromAddress
            Get
                Return ConfigurationManager.AppSettings("EmailFromAddress")
            End Get
        End Property


        Public ReadOnly Property MetaDescription() As String Implements IConfigurationSettings.MetaDescription
            Get
                Return ConfigurationManager.AppSettings("MetaDescription")
            End Get
        End Property

        Public ReadOnly Property BookmarksPerPage() As String Implements IConfigurationSettings.BookmarksPerPage
            Get
                Return ConfigurationManager.AppSettings("BookmarksPerPage")
            End Get
        End Property
    End Class
End Namespace